package model.impl;

import model.BeanDefinition;

/**
 * @author Max
 * <br>
 * date 2019/12/18 16:39
 * <p>
 *     bean对象的详细处理
 * </p>
 *
 * @version 0.1
 */

public class DefaultBeanDefinition implements BeanDefinition {

    /**
     * @since 0.1
     *
     */
    private String name;

    /**
     * @since 0.1
     */
    private String className;

    /**
     * @since 0.4
     */
    private String scope;

    /**
     * @since 0.4
     */
    private boolean lazyInit;

    /**
     * @since 0.5
     */
    private String initialize;

    /**
     * @since 0.5
     */
    private String destroy;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getClassName() {
        return className;
    }

    @Override
    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String getScope() {
        return scope;
    }

    @Override
    public boolean isLazyInit() {
        return lazyInit;
    }

    @Override
    public void setLazyInit(boolean lazyInit) {
        this.lazyInit = lazyInit;
    }

    @Override
    public void setInitialize(String initialize) {
        this.initialize = initialize;
    }

    @Override
    public String getInitialize() {
        return initialize;
    }

    @Override
    public void setDestroy(String destroy) {
        this.destroy = destroy;
    }

    @Override
    public String getDestroy() {
        return destroy;
    }
}